<?php 
require_once('system/dbConn.php');
header("Content-type: text/html; charset=utf-8");
$DBConnect=connect();
$id = $_GET['id'];

var_dump($id);
$sql ="delete from foodshelf where id =$id";
$result = mysql_query($sql);
if ($result) {
echo '删除成功'.'<a href="myfoodList.php">如果没有跳转，请点这里跳转</a>';
				header("refresh:3;mybookList.php"); 

}
else
{
		echo '删除失败';
}


 ?>